<?php $this->load->view('layout/header');?>
<div class="supplier-content-page">
    <div class="product-test-h5">
        <ul class="breadcrumb">
            <li><a href="javascript:;">营销管理</a></li>
            <li class="active"><a href="javascript:;">账号管理</a></li>
        </ul>
        <div class="product-view-area">
            <p>账号管理</p>
            <a href="<?php echo site_url('user/add')?>">添加</a>
        </div>
        <div class="yunfei-templete-grid">
            <?php if ($list->num_rows() > 0) :?>
                <table class="table table-striped">
                    <thead>
                        <tr>
                            <th width="100">用户类型</th>
                            <th width="120">用户昵称</th>
                            <th width="100">姓名</th>
                            <th width="100">性别</th>
                            <th width="120">手机号码</th>
                            <th width="100">状态</th>
                            <th width="60">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($list->result() as $key=>$item):?>
                        <tr>
                            <td><?php $usertype = $currentThis->usertype($item->user_type); echo isset($usertype['type_zh']) ? $usertype['type_zh'] : ''; ?></td>
                            <td><?php echo $item->alias_name ?></td>
                            <td><?php echo $item->contacter ?></td>
                            <td><?php echo $sex_id[$item->sex_id]; ?></td>
                            <td><?php echo $item->mobile_phone ?></td>
                            <td><?php echo $item->status == 0 ? '禁用' : '启用'; ?></td>
                            <td><a class="btn btn-default btn-xs" href="<?php echo site_url('user/edit/'.$item->uid)?>">编辑</a></td>
                        </tr>
                        <?php endforeach;?>
                    </tbody>
                </table>
                <div class="your-page pagination pagination-right"><?php echo $pg_link;?></div>
            <?php else :?>
                <div class="none-data">暂无数据</div>
            <?php endif;?>
        </div>
    </div>
</div>
<?php $this->load->view('layout/footer');?>